package com.lly.tboc.zhouyi.everyday

import kotlin.random.Random

object EveryDayOneGua {
    fun randomGua(): Int {
        val guaId = Random.nextInt(1, 64 + 1)
        return guaId
    }

    fun randomYao(guaId: Int): Int {
        var end = 7
        if (guaId in arrayOf(1, 2)) {
            end = 8
        }
        val yaoId = Random.nextInt(1, end)
        return yaoId
    }
}